package com.jarvis.pzz.modules.recommend;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jarvis.pzz.R;
import com.jarvis.pzz.models.FindShopModel;

import java.util.List;

/**
 * Created by Administrator
 * on 2017/9/26.
 */

public class RecommendAdapter extends BaseQuickAdapter<FindShopModel.FindshopBean> {

    public RecommendAdapter(int layoutResId, List<FindShopModel.FindshopBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, FindShopModel.FindshopBean releseDemandModel) {
        baseViewHolder
                .setText(R.id.tv_title, releseDemandModel.getReqTitle())
                .setText(R.id.tv_date, releseDemandModel.getReqCreatetime())
                .setText(R.id.tv_area, releseDemandModel.getReqMeasureArea()+"㎡")
                .setText(R.id.tv_rent, releseDemandModel.getReqRent())
                .setText(R.id.tv_district, releseDemandModel.getReqAddress());

    }
}